package cn.cvs.service;

import cn.cvs.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 */

public interface SupplierService {

    List<Supplier> getSupplierListByCodeAndName(String code,String name,Integer pageNo,Integer pageSize);

    int add(Supplier supplier);

    int update(Supplier supplier);

    int delete(List<Integer> ids);

    Supplier getSupplierById(Integer id);

    int getCountByCodeAndName(@Param( "code" )String code, @Param ( "name" ) String name);

    int getCountByQueryJoinEntity(int id);

    List<Supplier> getList();
}
